home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 79 / maccd 79.iso / multimedial / GL Tron / Source / gltron / png_texture.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-13  |  366 b   |  17 lines  |  [TEXT/CWIE]

  1. #ifndef PNG_TEXTURE_H
  2. #define PNG_TEXTURE_H
  3.  
  4. typedef struct {
  5.   int width;
  6.   int height;
  7.   int channels;
  8.   unsigned char *data;
  9. } png_texture;
  10.  
  11. extern png_texture* load_png_texture(char *filename);
  12. extern void unload_png_texture(png_texture *tex);
  13. extern png_texture* mipmap_png_texture(png_texture *source, int level, 
  14.                        int clamp_u, int clamp_v);
  15. #endif
  16.  
  17.